<template>
    <div class="goodsdesc-container">
        <h3>{{ info.title }}</h3>
        <hr>
        <div class="goods-content" v-html="info.content"></div>
    </div>
</template>
<script>
export default {
    data(){
        return {
            id:this.$route.params.id,  // goodsid
            info:{}// 存放图文数据
        }
    },
    created(){
        this.getgoodsdesc();
    },
    methods:{
        getgoodsdesc(){
            this.$http.get("api/getgoodsdesc/" + this.id + "/")
            .then(result=>{
                if(result.data.status === 0){
                    this.info = result.data.message
                }
            })
        }
    }
}
</script>
<style lang="scss" >
.goodsdesc-container{
    h3{
        font-size: 16px;
        color: #226aff;
        text-align: center;
        margin: 15px 0;
    }
    .poster{
        width:100%;
    }
}
</style>
